package com.qijian.maindata.domain;

import com.qijian.tool.domain.Storage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 收料通知检验单-检验项详情记录对象 purm_purchase_take_qt_details_record
 *
 * @author qijian
 * @date 2024-08-24
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("purm_purchase_take_qt_details_record")
public class PurmPurchaseTakeQtDetailsRecord extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "ID")
    private Long id;

    @Excel(name = "原始检验项明细id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "原始检验项明细id")
    private Long originId;

    @Excel(name = "检验项id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "检验项id")
    private Long mainItemId;

    @Excel(name = "检验明细项名称")
    @ApiModelProperty(value = "检验明细项名称")
    private String inspectionName;

    @Excel(name = "是否自检,默认true")
    @ApiModelProperty(value = "是否自检,默认true")
    private Boolean isSelfCheck;

    @Excel(name = "下限值")
    @ApiModelProperty(value = "下限值")
    private String minValue;

    @Excel(name = "上限值")
    @ApiModelProperty(value = "上限值")
    private String maxValue;

    @Excel(name = "默认值")
    @ApiModelProperty(value = "默认值")
    private String defaultValue;

    @Excel(name = "检测频次")
    @ApiModelProperty(value = "检测频次")
    private Long frequency;

    @Excel(name = "自检值")
    @ApiModelProperty(value = "自检值")
    private String selfValues;

    @Excel(name = "专检值")
    @ApiModelProperty(value = "专检值")
    private String specValues;

    @Excel(name = "说明")
    @ApiModelProperty(value = "说明")
    private String remark;

    @Excel(name = "排序号")
    @ApiModelProperty(value = "排序号")
    private Integer orderNum;

    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty(value = "${column.columnComment}")
    private Boolean isSpecCheck;

    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty(value = "${column.columnComment}")
    private Long specFrequency;

    @Excel(name = "false:复选框，true:文本框")
    @ApiModelProperty(value = "false:复选框，true:文本框")
    private Boolean isText;

    private List<Storage> selfFiles;
}
